﻿using System;
using System.Collections.Generic;

using HelfenHelfen.DataAccess.Factories;
using HelfenHelfen.DataAccess.Interfaces;
using HelfenHelfen.DataAccess.Entities;
using HelfenHelfen.Logic.Interfaces;

namespace HelfenHelfen.Logic {
   public class DemandCategoryLogic : IDemandCategoryLogic {
      public IList<DemandCategory> GetAll(){
         IDemandCategoryDataAccess da = DataAccessFactory.CreateDemandCategoryDataAccess();
         var obj = da.GetAll();
         var nullDemand = new DemandCategory();
         nullDemand.DemandCategoryGUID = Guid.Empty;
         nullDemand.Name ="(Alle Kategorien)";
         obj.Insert(0, nullDemand);
         return obj;
      }
   }
}
